package com.pingan.haofang.searchcloud.web.index.vo.example;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 增量推送到平台请求参数
 *
 * @author zhangbi617
 * @date 03/05/2017
 */
@ApiModel(description = "定时增量，获取用户方数据请求参数")
public class IncRpcRequestParam {

    @ApiModelProperty(value = "数据版本号开始（系统查询es/solr给出）", example = "1234567890000")
    private Long versionFrom;

    @ApiModelProperty(value = "最大数据版本号（系统当前时间）", example = "1234567890000")
    private Long versionTo;

    @ApiModelProperty(value = "页大小（取自数据源配置）", example = "100")
    private Integer pageSize;

    @ApiModelProperty(value = "页码(系统传入)", example = "1")
    private Integer pageNo;



    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public Integer getPageNo() {
        return pageNo;
    }

    public void setPageNo(Integer pageNo) {
        this.pageNo = pageNo;
    }

    @Override
    public String toString() {
        return "IncRpcRequestParam{" +
                "versionFrom=" + versionFrom +
                ", versionTo=" + versionTo +
                ", pageSize=" + pageSize +
                ", pageNo=" + pageNo +
                '}';
    }

    public Long getVersionFrom() {
        return versionFrom;
    }

    public void setVersionFrom(Long versionFrom) {
        this.versionFrom = versionFrom;
    }

    public Long getVersionTo() {
        return versionTo;
    }

    public void setVersionTo(Long versionTo) {
        this.versionTo = versionTo;
    }

}
